package types

import "encoding/json"

func (e EnumIntItem) MarshalJSON() ([]byte, error) {
	// Marshal the Value field as an integer
	return json.Marshal(struct {
		Value int32  `json:"value"`
		Label string `json:"label"`
	}{
		Value: e.Value,
		Label: e.Label,
	})
}
